<h3>
<a href="__URL__/news_edit?uid={$uid}" class="actionBtn">
        添加通知
    </a>
    会员通知管理
</h3>
<div class="filter">
    <form action="{:U(GROUP_NAME.'/User/index')}" method="post">
        <input name="keyword" type="text" class="inpMain" value="{$keyword}" size="20" />
        <input name="submit" class="btnGray" type="submit" value="筛选" />
    </form>
</div>
<div id="list">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
            <tr>
                <th width="80" align="center">ID</th>
                <th width="100" align="left">会员</th>
                <th width="80" align="center">标题</th>
                <!--<th width="80">状态</th>-->
                <th width="60" align="center">日期</th>
                <!--<th width="75" align="center">银行信息</th>-->
                <th align="center" width="200">操作</th>
            </tr>
            <volist name="list" id="vo">
                <tr>
                    <td align="center">{$vo.id}</td>
                    <td>{$vo.name}</td>
                     <td align="">{$vo.title}</td>
                    <!--<td align="center">
                    	<php>
                    		if($vo['status'] == 1) echo "允许登录";
                    		if($vo['status'] == 0) echo "禁止登录";
                    	</php>
                    </td>-->
                    <td align="center">{$vo.addtime|date='Y-m-d',###}</td>
                    <!--<td align="center">
                    银行名称: {$vo.bankname}  <br />
                    银行卡号: <span id="bankcard_{$vo.id}">{$vo.bankcard}</span></td>-->
                    <td align="center"><a href="__URL__/news_edit?id={$vo.id}&uid={$vo.uid}">修改</a> |
                        <a href="__URL__/user_news_del?id={$vo.id}">删除</a>
                    </td>
                </tr>
            </volist>
        </table>
</div>
<div class="clear"></div>
<div class="pager">
    {$page}
</div>
</div>
<script>
    function del(uname,jumpurl){
        layer.confirm(
                '确定要删除用户:'+uname+'吗?',
                function (){
                    window.location.href = jumpurl;
                }
        );
    }
    function changepass(uid){
		layer.prompt({title: '输入新密码，并确认', formType: 1}, function(pass, index){
			if(pass == '' || pass == null){
				layer.msg('密码不能为空!');
			}else if(pass.length < 6){
				layer.msg("密码长度不能小于6位!");
			}else{
				$.post(
					"{:U(GROUP_NAME.'/User/changepass')}",
					{id:uid,pass:pass},
					function (data,state){
						if(state != "success"){
							layer.msg("网络通讯失败!");
						}else if(data.status == 1){
							layer.msg("密码修改成功!");
							layer.close(index);
						}else{
							layer.msg(data.msg);
						}
					}
				);
			}
		});
    }
	
	
	
</script>
<div style="display: none;" id="e_bankcard">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td width="100" align="right">订单号</td>
            <td>
              <span id="order_sn"></span>
              <input type="" id="e_id" value="" />
            </td>
        </tr>
        <tr>
            <td align="right">额度</td>
            <td>
              <input type="text" value="" name="e_bankcard" id="e_bankcard" />
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
              <input type="submit" onclick="save_change_money();" class="btn" value="提交" />
            </td>
        </tr>
    </table>
</div>
<script>
function changebank(id){
		var bankcard=$("#bankcard_"+id).html();
		alert(bankcard);
		$("#e_bankcard").val(bankcard);
    	$("#e_id").val(id);
		layer.open({
		  	type: 1,
		  	skin: 'layui-layer-rim', //加上边框
		  	area: ['500px', '165px'], //宽高
		  	content: $("#e_bankcard").html()
		});
    }
</script>

<div style="display: none;" id="changestatus_div">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td width="100" align="right">会员</td>
            <td>
                <span id="changestatus_span"></span>
              <input type="hidden" id="orderid" value="" />
            </td>
        </tr>
        <tr>
            <td align="right">状态</td>
            <td>
                <label>
                  <input type="radio" name="is_sheng" id="is_sheng_0" value="1"  >
					初审通过
                </label>
                <label>
                  <input type="radio" name="is_sheng" id="is_sheng_1" value="0"  >
					初审不通过
              </label>
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="submit" onclick="savestatus();" class="btn" value="提交" />
            </td>
        </tr>
    </table>
</div>
<script>
function changesheng(name,oid,is_sheng){
    	$("#changestatus_span").html(name);
    	$("#orderid").attr('value',oid);
		$("#is_sheng_"+is_sheng).attr('checked','checked');
		//$("input:radio[name='is_sheng']").eq(0).attr("checked",'checked');
		layer.open({
		  	type: 1,
		  	skin: 'layui-layer-rim', //加上边框
		  	area: ['500px', '165px'], //宽高
		  	content: $("#changestatus_div").html()
		});
    }
	
function savestatus(){
    	var id = $("#orderid").val();
    	var status = $('input:radio[name="is_sheng"]:checked').val();
    	if(status != 'undefined' && status != '' && status != null){
    		$.post(
    			"{:U(GROUP_NAME.'/User/act_save_is_sheng')}",
    			{id:id,status:status},
    			function(data,state){
    				if(state != "success"){
    					layer.msg("请求数据失败!");
    				}else if(data.status == 1){
    					layer.msg("保存成功!");
    					setTimeout(function(){
    						window.location.href = window.location.href;
    					},2000);
    				}else{
    					layer.msg(data.msg);
    				}
    			}
    		);
    	}else{
    		layer.msg("请选择订单状态!");
    	}
    }
</script>